package com.lanchetech.dao;

import com.github.pagehelper.Page;
import com.lanchetech.bean.dto.BlindBoxPrizeDto;
import com.lanchetech.bean.request.BlindBoxPrizeReq;
import com.lanchetech.bean.vo.BlindBoxPrizeVo;
import com.lanchetech.entity.BlindBoxPrize;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Ren
 * @description 针对表【blind_box_prize(奖品表
 * )】的数据库操作Mapper
 * @createDate 2023-03-05 21:34:47
 * @Entity com.lanchetech.entity.domain.BlindBoxPrize
 */
public interface BlindBoxPrizeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(BlindBoxPrizeDto record);

    int insertSelective(BlindBoxPrize record);

    BlindBoxPrize selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BlindBoxPrizeDto record);

    int updateByPrimaryKey(BlindBoxPrize record);

    List<BlindBoxPrize> findOneByBlindBoxId(Long blindBoxId);

    List<BlindBoxPrizeVo> findAllPrizeByBlindBoxId(BlindBoxPrizeReq blindBoxPrizeReq);

    void deleteByIds(@Param("ids") List<Long> ids,
                     @Param("deleted") Boolean deleted);
}
